package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.SystemModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.sys.SystemContract;

import dagger.Module;
import dagger.Provides;

@Module
public class SystemModule {

    private SystemContract.View view;

    public SystemModule(SystemContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public SystemContract.View provideView() {
        return view;
    }

    @ActivityScope
    @Provides
    public SystemContract.Model provideModel(SystemModel model) {
        return model;
    }

}
